<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/css.css">
<title>记录列表</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

.STYLE1 {
	font-size: 12px
}

.STYLE4 {
	font-size: 12px;
	color: #1F4A65;
	font-weight: bold;
}

a:link {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;
}

a:visited {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;
}

a:hover {
	font-size: 12px;
	color: #FF0000;
	text-decoration: underline;
}

a:active {
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}

.STYLE7 {
	font-size: 12
}
-->
</style>

<script>
var  highlightcolor='#eafcd5';
//此处clickcolor只能用win系统颜色代码才能成功,如果用#xxxxxx的代码就不行,还没搞清楚为什么:(
var  clickcolor='#51b2f6';
function  changeto(){
source=event.srcElement;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentElement;
source=source.parentElement;
cs  =  source.children;
//alert(cs.length);
if  (cs[1].style.backgroundColor!=highlightcolor&&source.id!="nc"&&cs[1].style.backgroundColor!=clickcolor)
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor=highlightcolor;
}
}

function  changeback(){
if  (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="nc")
return
if  (event.toElement!=source&&cs[1].style.backgroundColor!=clickcolor)
//source.style.backgroundColor=originalcolor
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor="";
}
}

function  clickto(){
source=event.srcElement;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentElement;
source=source.parentElement;
cs  =  source.children;
//alert(cs.length);
if  (cs[1].style.backgroundColor!=clickcolor&&source.id!="nc")
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor=clickcolor;
}
else
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor="";
}
}
</script>
</head>


<body bgcolor="#ecf9dc">

	<table width="100%" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td height="30"><table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr>
						<%-- ·当前位置：<a href="" class="STYLE02">系统管理</a><span
					class="STYLE01">》</span><a href="" class="STYLE02">用户管理 </a> --%>
						<td width="15" height="30"><img src="tab/images/tab_03.gif"
							width="15" height="30" /></td>
						<td width="1101" background="tab/images/tab_05.gif"><img
							src="tab/images/311.gif" width="16" height="16" /> <span
							class="STYLE4">记录信息列表</span></td>
<!-- 						<td width="281" background="tab/images/tab_05.gif"><table
								border="0" align="right" cellpadding="0" cellspacing="0">
								<tr>
									<td width="60"><table width="87%" border="0"
											cellpadding="0" cellspacing="0">
											<tr>
												<td class="STYLE1"><div align="center">
														<input type="checkbox" name="checkbox62" value="checkbox" />
													</div></td>
												<td class="STYLE1"><div align="center">全选</div></td>
											</tr>
										</table></td>
									<td width="60"><table width="90%" border="0"
											cellpadding="0" cellspacing="0">
											<tr>
												<td class="STYLE1"><div align="center">
														<img src="tab/images/001.gif" width="14" height="14" />
													</div></td>
												<td class="STYLE1"><div align="center">新增</div></td>
											</tr>
										</table></td>
									<td width="60"><table width="90%" border="0"
											cellpadding="0" cellspacing="0">
											<tr>
												<td class="STYLE1"><div align="center">
														<img src="tab/images/114.gif" width="14" height="14" />
													</div></td>
												<td class="STYLE1"><div align="center">修改</div></td>
											</tr>
										</table></td>
									<td width="52"><table width="88%" border="0"
											cellpadding="0" cellspacing="0">
											<tr>
												<td class="STYLE1"><div align="center">
														<img src="tab/images/083.gif" width="14" height="14" />
													</div></td>
												<td class="STYLE1"><div align="center">删除</div></td>
											</tr>
										</table></td>
								</tr>
							</table></td> -->
						<td width="14"><img src="tab/images/tab_07.gif" width="14"
							height="30" /></td>
					</tr>
				</table></td>
		</tr>
		<tr>
			<td><table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr>
						<td width="9" background="tab/images/tab_12.gif">&nbsp;</td>
						<td bgcolor="#f3ffe3"><table width="99%" border="0"
								align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98"
								onmouseover="changeto()" onmouseout="changeback()">
								<tr>
									<td width="5%" height="26" background="tab/images/tab_14.gif"
										class="STYLE1"><div align="center" class="STYLE2 STYLE1">选择</div>
									</td>
									<td width="5%" height="26" background="tab/images/tab_14.gif"
										class="STYLE1"><div align="center" class="STYLE2 STYLE1">记录编号</div>
									</td>
									<td width="5%" height="18" background="tab/images/tab_14.gif"
										class="STYLE1"><div align="center" class="STYLE2 STYLE1">故障编号</div>
									</td>
									<td width="6%" height="18" background="tab/images/tab_14.gif"
										class="STYLE1"><div align="center" class="STYLE2 STYLE1">记录人编号</div>
									</td>
									<td width="17%" height="18" background="tab/images/tab_14.gif"
										class="STYLE1"><div align="center" class="STYLE2 STYLE1">故障名称</div>
									</td>
									<td width="16%" height="18" background="tab/images/tab_14.gif"
										class="STYLE1"><div align="center" class="STYLE2 STYLE1">发生时间</div>
									</td>
									<td width="16%" height="18" background="tab/images/tab_14.gif"
										class="STYLE1"><div align="center" class="STYLE2 STYLE1">记录时间</div>
									</td>
									<td width="11%" height="18" background="tab/images/tab_14.gif"
										class="STYLE1"><div align="center" class="STYLE2 STYLE1">电话</div>
									</td>
									<td width="5%" height="18" background="tab/images/tab_14.gif"
										class="STYLE1"><div align="center" class="STYLE2 STYLE1">标记</div>
									</td>
									<td width="7%" height="18" background="tab/images/tab_14.gif"
										class="STYLE1"><div align="center" class="STYLE2">编辑</div>
									</td>
									<td width="7%" height="18" background="tab/images/tab_14.gif"
										class="STYLE1"><div align="center" class="STYLE2">删除</div>
									</td>
								</tr>
								<s:iterator value="#request.fRecords">
									<tr bgcolor="#FFFFFF">
										<td height="18" bgcolor="#FFFFFF"><div align="center"
												class="STYLE1">
												<input name="checkbox2" type="checkbox" class="STYLE2"
													value="checkbox" />
											</div></td>
										<td align="center"><s:property value="id" />
										</td>
										<td align="center"><a style="font-size:14px;color:blue;"
											href="oneFaultAction?id=<s:property value="faultId"/>"><s:property
													value="faultId" />
										</a></td>
										<td align="center"><a style="font-size:14px;color:blue;"
											href=""><s:property value="user.id" />
										</a></td>
										<td align="center"><s:property value="fname" />
										</td>
										<td align="center"><s:property value="happentime" />
										</td>
										<td align="center"><s:property value="jltime" />
										</td>
										<td align="center"><s:property value="phone" />
										</td>
										<td align="center"><s:property value="mark" />
										</td>
										<td height="18" bgcolor="#FFFFFF"><div align="center">
												<img src="tab/images/037.gif" width="9" height="9" /><span
													class="STYLE1"> [</span><a
													href="oneFaultRecordAction?id=<s:property value="id"/>">查看</a><span
													class="STYLE1">]</span>
											</div>
										</td>
										<td height="18" bgcolor="#FFFFFF"><div align="center">
												<span class="STYLE2"><img src="tab/images/010.gif"
													width="9" height="9" /> </span><span class="STYLE1">[</span><a
													href="javascript:if(confirm('确定要删除${id}吗?'))location='deleteFaultRecordAction?id=${id}'">删除</a><span
													class="STYLE1">]</span>
											</div>
										</td>
									</tr>
								</s:iterator>

							</table></td>
						<td width="9" background="tab/images/tab_16.gif">&nbsp;</td>
					</tr>
				</table></td>
		</tr>
		<tr>
			<td height="29"><table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr>
						<td width="15" height="29"><img src="tab/images/tab_20.gif"
							width="15" height="29" /></td>
						<td background="tab/images/tab_21.gif"><table width="100%"
								border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="25%" height="29" nowrap="nowrap"><span
										class="STYLE1">共${allRows}条纪录，当前第${offset}/${allPage}页，每页10条纪录</span>
									</td>
									<td width="75%" valign="top" class="STYLE1"><div
											align="right">
<%-- 											<table width="352" height="20" border="0" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="62" height="22" valign="middle"><div
															align="right">
															<img src="tab/images/first.gif" width="37" height="15" />
														</div></td>
													<td width="50" height="22" valign="middle"><div
															align="right">
															<img src="tab/images/back.gif" width="43" height="15" />
														</div></td>
													<td width="54" height="22" valign="middle"><div
															align="right">
															<img src="tab/images/next.gif" width="43" height="15" />
														</div></td>
													<td width="49" height="22" valign="middle"><div
															align="right">
															<img src="tab/images/last.gif" width="37" height="15" />
														</div></td>
													<td width="59" height="22" valign="middle"><div
															align="right">转到第</div></td>
													<td width="25" height="22" valign="middle"><span
														class="STYLE7"> <input name="textfield" type="text"
															class="STYLE1" style="height:10px; width:25px;" size="5" />
													</span></td>
													<td width="23" height="22" valign="middle">页</td>
													<td width="30" height="22" valign="middle"><img
														src="tab/images/go.gif" width="37" height="15" /></td>
												</tr>
											</table> --%>
										</div></td>
								</tr>
							</table></td>
						<td width="14"><img src="tab/images/tab_22.gif" width="14"
							height="29" /></td>
					</tr>
				</table></td>
		</tr>
	</table>
	<center>
		总共有${allPage}页, 当前是第${offset}页 <a href="listFaultRecordAction?page=0"><font
			size="2" color="blue">首页</font>
		</a> <a
			href="javascript:if(${offset}>1)location='listFaultRecordAction?page=${page-1}'"><font
			size="2" color="red">上一页</font>
		</a> <a
			href="javascript:if(${offset}<${allPage})location='listFaultRecordAction?page=${page+1}'"><font
			size="2" color="red">下一页</font>
		</a> <a href="listFaultRecordAction?page=${allPage-1}"><font size="2"
			color="blue">末页</font>
		</a>
	</center>
</body>
</html>